var ZTree;
ZTree = (function ($) {

    var defaultOptions = {
        view: {
            dblClickExpand: false,
            showLine: true,
            selectedMulti: false,
            showIcon: false
        },
        data: {
            simpleData: {
                enable: true,
                idKey: "id",
                pIdKey: "pid",
                rootPId: ""
            }
        }
    };

    function ZTree(el, options, zNodes) {
        var setting = $.extend(defaultOptions, options, {});
        this.ztree = $.fn.zTree.init($(el), setting, zNodes);
    }

    return ZTree;

})(jQuery);